package com.atguigu.cloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entity.CommonResult;
import com.atguigu.springcloud.entity.Payment;

public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException exception){
        return new CommonResult(444, "按客户自定义,global handlerException", new Payment(2020L, "serial003-----1"));
    }

    public static CommonResult handlerException2(BlockException exception){
        return new CommonResult(444, "按客户自定义,global handlerException", new Payment(2020L, "serial003-----2"));
    }
}
